package FactoryPattern.c;

public class Test {
    public static void main(String[] args) {
        AdminFactory adminFactory = new AdminFactory();
        User admin = adminFactory.creatUser("张三","223");
        NormalFactory normalFactory = new NormalFactory();
        User normal1 = normalFactory.creatUser("李四", "221");
        User normal2 = normalFactory.creatUser("王五", "222");
        admin.function();
        normal1.function();
        normal2.function();
    }
}
